package pl.elka.pszt.controller.handler;

import pl.elka.pszt.controller.Controller;
import pl.elka.pszt.controller.event.BaseEvent;
import pl.elka.pszt.controller.event.SetThreadsEvent;

/**
 * 
 * @author Andrzej Makarewicz
 * 
 */
public class SetThreadsHandler extends BaseHandler {
	
	public SetThreadsHandler(Controller controller) {
		super(controller);
	}

	public void handleEvent(BaseEvent event) {
		SetThreadsEvent setThreadsEvent = (SetThreadsEvent) event;
		controller.getModel().setThreads(setThreadsEvent.getThreadsNumber());
	}
	
}
